package com.lkr.webapp.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 文件映射
 *
 * @author lqs2
 * @date 2018/9/23, Sun
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

//    @Value("${my.mybatis.map-dir}")
//    private String zipFilePath;
//
//
//    /**
//     * mybatis 生成文件下载前缀
//     */
//    public static String mybatisFileDownloadPathPrefix = "/file/mybatis/zip/";
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler(mybatisFileDownloadPathPrefix + "**").addResourceLocations(zipFilePath);
//    }


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new CustomInterceptor()).addPathPatterns("/**").excludePathPatterns(new ArrayList<String>() {{
//            add("/css/**");
//            add("/js/**");
//            add("/image/**");
//        }});
    }
}
